﻿@{
    ViewBag.Title = "控制台";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section header{
    <style>
        .panel-orange {
            box-shadow: 0 0 8px rgba(0,0,0,.15);
            border: none;
        } 
        .panel-orange .icon {
            color: orange;            
        }
            .panel-orange .panel-footer {
                color: #fff;
                background-color: orange;
                border: none;
            }
        .panel-orange .panel-footer a {
            color: #fff;
        }

        .panel-blue {
            box-shadow: 0 0 8px rgba(0,0,0,.15);
            border: none;
        }

            .panel-blue .icon {
                color: #0099ff;
            }

            .panel-blue .panel-footer {
                color: #fff;
                background-color: #0099ff;
                border: none;
            }
            .panel-blue .panel-footer a{
                color:#fff;
            }
    </style>
}


    <div class="row">
        @*<div class="col-sm-3 col-md-2">
            <div class="panel panel-default total">
                <div class="panel-body">
                    <div class="icon">
                        <span class="glyphicon glyphicon-th-large"></span>
                    </div>
                </div>
                <div class="panel-footer"><strong>@ViewBag.WorkCount</strong> 个案例</div>
            </div>
        </div>*@
        <div class="col-sm-3 col-md-2">
            <div class="panel total panel-orange">
                <div class="panel-body">
                    <div class="icon">
                        <span class="glyphicon glyphicon-th"></span>
                    </div>
                </div>
                <div class="panel-footer">
                    <a href="@Url.Action("Index","Product")">
                        <strong>@ViewBag.ProductCount</strong> 个产品
                    </a>
                </div>
            </div>
        </div>
        <div class="col-sm-3 col-md-2">
            <div class="panel total panel-blue">
                <div class="panel-body">
                    <div class="icon">
                        <span class="glyphicon glyphicon-file"></span>
                    </div>
                </div>
                <div class="panel-footer">
                    <a href="@Url.Action("Index","News")">
                        <strong>@ViewBag.NewsCount</strong> 篇文章
                    </a>
                </div>
            </div>
        </div>

        @*<div class="col-sm-3 col-md-2">
            <div class="panel panel-default total">
                <div class="panel-body">
                    <div class="icon">
                        <span class="glyphicon glyphicon-user"></span>
                    </div>
                </div>
                <div class="panel-footer"><strong>@ViewBag.TeamCount</strong> 位成员</div>
            </div>
        </div>*@
      
        @*<div class="col-sm-3 col-md-2">
            <div class="panel panel-default total">
                <div class="panel-body">
                    <div class="icon">
                        <span class="glyphicon glyphicon-picture"></span>
                    </div>
                </div>
                <div class="panel-footer"><strong>@ViewBag.CarouselCount</strong> 张轮播图</div>
            </div>
        </div>*@
      
    </div>


   



<div class="row">
    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><span class="glyphicon glyphicon-user"></span> 当前帐号</h3>
            </div>

            <!-- List group -->
            <ul class="list-group">
                <li class="list-group-item">帐号名：@User.Identity.Name</li>
                <li class="list-group-item">角色：@ViewBag.Roles</li>
                <li class="list-group-item">上次登录时间：@ViewBag.LastLoginTime</li>
                <li class="list-group-item">当前浏览器：@Request.Browser.Browser  @Request.Browser.Version</li>
                <li class="list-group-item">用户IP：@SystemInfo.GetUserIP()</li>

            </ul>
        </div>
    </div>

    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><span class="glyphicon glyphicon-info-sign"></span> 网站信息</h3>
            </div>

            <!-- List group -->
            <ul class="list-group">
                <li class="list-group-item">网站名称：@SettingsManager.Site.SiteName</li>
                <li class="list-group-item">公司名称：@SettingsManager.Contact.CompanyName</li>
                <li class="list-group-item">联系电话：@SettingsManager.Contact.Phone</li>
                <li class="list-group-item">网站域名：@SettingsManager.Site.SiteDomainName</li>
                <li class="list-group-item">工信部备案：@SettingsManager.Site.WebNumber</li>
                <li class="list-group-item">系统版本：@SettingsManager.Site.Version</li>

            </ul>
        </div>
    </div>
    <div class="col-sm-4">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><span class="glyphicon glyphicon-home"></span> 主机环境</h3>
            </div>

            <!-- List group -->
            <ul class="list-group">
                <li class="list-group-item">操作系统：@SystemInfo.OsVersion</li>
                <li class="list-group-item">当前主机名称：@System.Net.Dns.GetHostName()</li>
                <li class="list-group-item">服务器IIS版本：@Request.ServerVariables["SERVER_SOFTWARE"]</li>
                <li class="list-group-item">NET框架版本：@SystemInfo.Version</li>
                <li class="list-group-item">网站目录：@SystemInfo.DirectoryPhysicalPath</li>
                <li class="list-group-item">服务器IP：@SystemInfo.ServerIP</li>

            </ul>
        </div>
    </div>
</div>

@section footer{
    <script>
        $(function () {
            $('.mainmenu>li').eq(0).addClass('nav-open');
        });
    </script>
}